package ca.ericslandry.shared.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class IssueSavedEvent extends GwtEvent<IssueSavedEvent.Handler> {
	public interface Handler extends EventHandler {
		void onIssueSaved(IssueSavedEvent event);
	}

	public static Type<IssueSavedEvent.Handler> TYPE = new Type<IssueSavedEvent.Handler>();
	public IssueSavedEvent() {
	}

	@Override
	protected void dispatch(IssueSavedEvent.Handler handler) {
		handler.onIssueSaved(this);
	}

	@Override
	public Type<IssueSavedEvent.Handler> getAssociatedType() {
		return TYPE;
	}
}
